package com.squid.user.service.user;


import com.squid.base.common.bean.PageReq;
import com.squid.base.common.bean.PageResp;
import com.squid.base.common.mapper.EasyService;
import com.squid.user.model.entity.UserEntity;
import com.squid.user.model.req.UserEntityRegisterReq;
import com.squid.user.model.req.UserEntitySelectReq;
import com.squid.user.model.req.UserEntityUpdateReq;
import com.squid.user.model.resp.UserEntitySelectResp;

/**
* @author jinhang1
* @description 针对表【user_entity(用户信息表)】的数据库操作Service
* @createDate 2024-02-07 15:36:23
*/
public interface UserEntityService extends EasyService<UserEntity> {
    /**
     * Description 注册
     *
     * @param req
     * @author jinhang1
     * @since 2024/02/07
     */
    void register(UserEntityRegisterReq req);

    /**
     * Description 更新
     *
     * @param req
     * @author jinhang1
     * @since 2024/02/07
     */
    void updateInfo(UserEntityUpdateReq req);


    /**
     * Description 分页
     *
     * @param req
     * @return {@link PageResp }<{@link UserEntitySelectResp }>
     * @author jinhang1
     * @since 2024/02/08
     */
    PageResp<UserEntitySelectResp> pageInfo(PageReq<UserEntitySelectReq> req);


    /**
     * 删除用户
     *
     * @param id id
     */
    void deleteUser(String id);

}
